<?php

namespace App\Models;


class DownloadRecord extends BaseModel
{
    protected $table = 'download_records';


    public function user()
    {
        return $this->belongsTo(User::class, 'user_id', 'id');
    }

    public function file()
    {
        return $this->belongsTo(File::class, 'file_id', 'id');
    }
}